let Emitter = require("events");
class Player extends Emitter{}
let player = new Player();
player.on("daqiu",(name)=>{
    console.log(name+":打球")
})
player.emit("daqiu","小明");
player.emit("daqiu","小黑");